package task3to17WeiXin;

public class ChatFactory {
    public static  ChatTool getTool(int a){
        ChatTool chatTool = null;
        if (a == 0) {
            chatTool = new WeiXin();
        } else if (a == 1) {
            chatTool = new Weibo();
        } else {
            System.out.println("输入有误");
        }
        return chatTool;
    }
}
